list1 = input("输入一条字符串")
dict = {}
for i in list1:
    if i not in dict:
        dict[i] = 1
    else:
        dict[i] += 1
print(dict)
